﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;

namespace NGuestBook.AccessDAL
{
    /**//// <summary>
    /// 由DataReader转换成实体类的策略接口
    /// </summary>
    public interface IDataReaderToEntityStrategy<T>
    {
        /**//// <summary>
        /// 将DataReader转换为实体类，采用泛型
        /// </summary>
        /// <param name="dataReader">包含数据的DataReader对象</param>
        /// <returns>实体类</returns>
        T DataReaderToEntity(OleDbDataReader dataReader);
    }
}